package com.mop.app.controller.anymous;

import com.mop.app.common.BaseController;
import com.mop.app.controller.vo.*;
import com.mop.app.service.SmsService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 短信
 *
 * @author wchen
 * @since 2020-02-27
 */
@RestController
@RequestMapping("/anymous/sms")
public class AnySmsController extends BaseController {


    @Resource
    private SmsService smsService;

    /**
     * 发送短信
     *
     * @param smsVO
     * @return
     */
    @PostMapping("/sendSms")
    public void sendSms(@RequestBody SmsVO smsVO) throws Exception {
        smsService.sendSms(smsVO.getPhone(), smsVO.getSmsType());
    }


}

